package com.jojo.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class ControllerDemo {
    @RequestMapping("/t1")
    public String testDemo(Model model){
        model.addAttribute("msgs","hello msgs");
        model.addAttribute("msg","msg hello");
//        要跳转的页面的jsp文件名称
        return "test";
    }
}
